﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MainPausePanel : BasePanel
{
    CanvasGroup cg;
    public override void OnEnter()
    {
    }

    public override void OnExit()
    {
        if (cg == null)
            cg = gameObject.GetComponent<CanvasGroup>();
        cg.blocksRaycasts = false;
        cg.interactable = false;
        cg.alpha = 1;
    }

    public override void OnPause()
    {

    }

    public override void OnResume()
    {

    }

    public void PauseButton()
    {
        EffectObjectManager.Instance.ButtonEffects();
        UIManager.Instance.PushPanel("PausePanel");
    }

    // Start is called before the first frame update
    void Start()
    {
        if (cg == null)
            cg = gameObject.GetComponent<CanvasGroup>();
    }

    // Update is called once per frame

}
